<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>将元素在页面移动一圈</title>
<style>
#fish{
	position:relative;
}
</style>
<script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#fish").animate({left:300},1000)
	.animate({top:200},1000)
	.animate({left:0},200)
	.animate({top:0},200);
});
</script>
</head>

<body>
<div id="fish"><img src="images/fish.jpg" /></div>
</body>
</html>
